package com.community.feign.contents.slideshow;

import com.community.feign.contents.dto.SlideshowDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Date;
import java.util.List;

/**
 * @className: Slideshowfeign
 * @author: shuishui
 * @date: 2023/03/01 15:18
 */
@Component
@FeignClient(name = "community-contents", path = "slideshow",contextId ="community-contents-slideshow")
public interface Slideshowfeign {
    @GetMapping("/selectAll")
    public List<SlideshowDTO> selectAll();

    @GetMapping("/removeById/{id}")
    public boolean removeById(@PathVariable Integer id);


    @PostMapping("/save")
    public boolean save(@RequestBody SlideshowDTO slideshowDTO);
}
